<!doctype html>
<html>
<head>
    <meta charset=utf-8>
    <title></title>
    <meta name="robots" content="noindex,nofollow">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?=Web_Path?>packs/layui/css/layui.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/font.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/style.css">
    <script src="<?=Web_Path?>packs/js/jquery.min.js"></script>
    <script src="<?=Web_Path?>packs/layui/layui.js"></script>
    <script src="<?=Web_Path?>packs/admin/js/cscms.js"></script>
</head>
<body style="padding: 10px;">
    <form class="layui-form layui-form-pane" action="<?=site_url('collect/daoru_save')?>" method="post" >
        <div class="layui-form-item">
            <label class="layui-form-label"><?=L('tpl_cd_01')?></label>
            <div class="layui-input-block" onclick="cscms.show_hide('sid','sid')">
                <input type="radio" name="sid" value="1" title="<?=L('tpl_cd_02')?>" checked>
                <input type="radio" name="sid" value="2" title="<?=L('tpl_cd_03')?>">
            </div>
        </div>
        <div class="layui-form-item layui-form-text sid sid1">
            <label class="layui-form-label"><?=L('tpl_cd_04')?></label>
            <div class="layui-input-block">
                <textarea name="neir" style="min-height: 150px;" placeholder="<?=L('tpl_cd_05')?>" class="layui-textarea"></textarea>
            </div>
        </div>
        <div class="layui-form-item sid sid2" style="display: none;">
            <label class="layui-form-label"><?=L('tpl_cd_06')?></label>
            <div class="layui-input-inline" style="width: 145px;">
				<button style="margin-left: 10px;" class="layui-btn" id="upid"><?=L('tpl_cd_09')?></button>
            </div>
            <div class="layui-form-mid layui-word-aux info"></div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block layui-input-center">
                <button class="layui-btn" lay-submit lay-filter="setting"><?=L('tpl_cd_07')?></button>
                <button type="reset" class="layui-btn layui-btn-primary"><?=L('tpl_cd_08')?></button>
            </div>
        </div>
    </form>
    <script type="text/javascript">
        cscms.init();
        layui.use('upload', function(){
            layui.upload.render({
				url: '<?=Web_Path.SELF?>/upload/caiji'
				,elem:'#upid'
				,exts: 'txt'
				,done: function(res){
                    if(res.error==0){
                        $('.info').html('<?=L('tpl_cd_10')?>');
                    }else{
                        cscms.layer.msg(res.info);
                    }
				}
			});
        });
    </script>
</body>
</html>
